<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>学生管理系统 - 角色选择</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Microsoft YaHei', Arial, sans-serif;
            background: linear-gradient(135deg, #ff9a56 0%, #ff6b35 25%, #4ecdc4 50%, #45b7d1 75%, #96ceb4 100%);
            background-size: 400% 400%;
            animation: gradientShift 15s ease infinite;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow-x: hidden;
        }
        
        /* 动态背景动画 */
        @keyframes gradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        
        /* 背景装饰元素 */
        body::before {
            content: '';
            position: fixed;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255, 154, 86, 0.1) 0%, transparent 70%);
            animation: float 20s ease-in-out infinite;
            z-index: -1;
        }
        
        @keyframes float {
            0%, 100% { transform: translate(0, 0) rotate(0deg); }
            33% { transform: translate(30px, -30px) rotate(120deg); }
            66% { transform: translate(-20px, 20px) rotate(240deg); }
        }
        
        .container {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(15px);
            padding: 60px 40px;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(255, 154, 86, 0.3);
            text-align: center;
            max-width: 600px;
            width: 100%;
            border: 3px solid transparent;
            background-clip: padding-box;
            position: relative;
        }
        
        .container::before {
            content: '';
            position: absolute;
            inset: 0;
            padding: 3px;
            background: linear-gradient(45deg, #ff9a56, #4ecdc4, #45b7d1, #96ceb4);
            border-radius: 20px;
            mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            mask-composite: exclude;
            animation: borderRotate 6s linear infinite;
        }
        
        @keyframes borderRotate {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .header {
            margin-bottom: 50px;
        }
        
        .header h1 {
            background: linear-gradient(45deg, #ff6b35, #ff9a56, #4ecdc4);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-size: 36px;
            margin-bottom: 15px;
            font-weight: 700;
            text-shadow: 0 2px 4px rgba(255, 107, 53, 0.3);
            animation: textGlow 3s ease-in-out infinite alternate;
        }
        
        @keyframes textGlow {
            from { filter: brightness(1); }
            to { filter: brightness(1.2); }
        }
        
        .header p {
            background: linear-gradient(45deg, #ff6b35, #4ecdc4);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-size: 18px;
            line-height: 1.6;
            font-weight: 600;
        }
        
        .role-selection {
            display: flex;
            gap: 40px;
            justify-content: center;
            flex-wrap: wrap;
            margin: 0 auto;
            max-width: 800px;
        }
        
        .role-card {
            background: rgba(255, 255, 255, 0.9);
            border: 2px solid rgba(255, 154, 86, 0.3);
            border-radius: 16px;
            padding: 40px 30px;
            width: 280px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            color: inherit;
            flex: 1;
            max-width: 350px;
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(10px);
            box-shadow: 0 8px 32px rgba(255, 154, 86, 0.2);
        }
        
        .role-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 154, 86, 0.3), transparent);
            transition: left 0.5s;
        }
        
        .role-card:hover::before {
            left: 100%;
        }
        
        .role-card:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: 0 15px 40px rgba(255, 154, 86, 0.4);
            border-color: #ff9a56;
        }
        
        .role-card.teacher:hover {
            background: linear-gradient(135deg, #ff9a56 0%, #ff6b35 100%);
            color: white;
        }
        
        .role-card.student:hover {
            background: linear-gradient(135deg, #4ecdc4 0%, #45b7d1 100%);
            color: white;
        }
        
        .role-icon {
            font-size: 60px;
            margin-bottom: 20px;
            display: block;
            filter: drop-shadow(0 4px 8px rgba(255, 154, 86, 0.3));
        }
        
        .role-title {
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 10px;
            background: linear-gradient(45deg, #ff6b35, #4ecdc4);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .role-card:hover .role-title {
            color: white;
            -webkit-text-fill-color: white;
        }
        
        .role-description {
            font-size: 16px;
            line-height: 1.5;
            opacity: 0.8;
            color: #666;
        }
        
        .role-card:hover .role-description {
            color: rgba(255, 255, 255, 0.9);
            opacity: 1;
        }
        
        .footer {
            margin-top: 40px;
            padding-top: 30px;
            border-top: 2px solid transparent;
            background: linear-gradient(90deg, #ff9a56, #4ecdc4) border-box;
            border-image: linear-gradient(90deg, #ff9a56, #4ecdc4) 1;
            background: linear-gradient(45deg, #ff6b35, #4ecdc4);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-size: 14px;
            font-weight: 600;
        }
        
        @media (max-width: 768px) {
            .container {
                margin: 20px;
                padding: 40px 20px;
            }
            
            .role-selection {
                flex-direction: column;
                align-items: center;
            }
            
            .role-card {
                width: 100%;
                max-width: 300px;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>学生管理系统</h1>
            <p>欢迎使用学生信息管理系统<br>请选择您的身份以继续</p>
        </div>
        
        <div class="role-selection">
            <a href="/teacher/login" class="role-card teacher">
                <span class="role-icon">👨‍🏫</span>
                <div class="role-title">教师登录</div>
                <div class="role-description">
                    管理学生信息<br>
                    查看和编辑学生数据<br>
                    导出学生报表
                </div>
            </a>
            
            <a href="/login" class="role-card student">
                <span class="role-icon">👨‍🎓</span>
                <div class="role-title">学生登录</div>
                <div class="role-description">
                    查看个人信息<br>
                    更新联系方式<br>
                    查看学籍状态
                </div>
            </a>
        </div>
        
        <div class="footer">
            <p>© 2025 学生管理系统 - 为教育信息化服务</p>
        </div>
    </div>
</body>
</html>